<div class="admin">
<div class="tab panel dux-box admin-panel">
    <div class="panel-head"><strong>信息模板设置</strong></div>
    <div class="padding border-bottom">
        <a href="{:U('/Msgtpl/index')}" class="button button-small border-green">信息模板</a>
        <a href="{:U('/Msgtpl/index')}" class="button button-small border-green">添加模板</a>
        <a class="button button-small bg-green">邮件信息设置</a>
        <a href="{:U('/Config/mobile')}" class="button button-small border-green">手机短信设置</a>
    </div>
            <div class="fixed-empty"></div>
            <form method="post" id="myform" name="myform" action="{:U('saveConfig')}">
                <table class="table">
                    <tbody>
                        <tr>
                            <td width="10%" class="required">SMTP 服务器:</td>
                            <td width="30%" class="vatop rowform"><input type="text" value="{$config['email_host']}" name="email_host" id="email_host" class="input input_big"></td>
                            <td class="vatop tips"><label class="field_notice">设置 SMTP 服务器的地址，如 smtp.163.com</label></td>
                        </tr>
                        <tr>
                            <td class="required">SMTP 端口:</td>
                            <td class="vatop rowform"><input type="text" value="{$config['email_port']}" name="email_port" id="email_port" class="input input_big"></td>
                            <td class="vatop tips"><label class="field_notice">设置 SMTP 服务器的端口，默认为 25</label></td>
                        </tr>
                        <tr>
                            <td class="required">发信人邮件地址:</td>
                            <td class="vatop rowform"><input type="text" value="{$config['email_addr']}" name="email_addr" id="email_addr" class="input input_big"></td>
                            <td class="vatop tips"><label class="field_notice">使用SMTP协议发送的邮件地址，如 abc@163.com</label></td>
                        </tr>
                        <tr>
                            <td class="required">SMTP 身份验证用户名:</td>
                            <td class="vatop rowform"><input type="text" value="{$config['email_id']}" name="email_id" id="email_id" class="input input_big"></td>
                            <td class="vatop tips"><label class="field_notice">如 abc</label></td>
                        </tr>
                        <tr>
                            <td class="required">SMTP 身份验证密码:</td>
                            <td class="vatop rowform"><input type="password" value="{$config['email_pass']}" name="email_pass" id="email_pass" class="input input_big"></td>
                            <td class="vatop tips"><label class="field_notice">abc@163.com邮件的密码，如 123456</label></td>
                        </tr>
                        <tr>
                            <td class="required">测试接收的邮件地址:</td>
                            <td class="vatop rowform"><input type="text" value="" name="email_test" id="email_test" class="input input_big"></td>
                            <td class="vatop tips"><input type="button" value="测试" name="send_test_email" class="button bg-main" id="send_test_email"></td>
                        </tr>
                    </tbody>
                    <tfoot class="panel-foot">
                        <tr>
                            <td colspan="3"><input type="submit" value="提交" class="button bg-main" /></td>
                        </tr>
                    </tfoot>
                </table>
            </form>
        </div>
		</div>
        <script type="text/javascript">
            $('#myform').layer({});
        </script>
